package com.example.teachingevaluationsystem.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.teachingevaluationsystem.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.teachingevaluationsystem.vo.CourseVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author lp
 * @since 2022-03-28
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    Page<CourseVo> selectPageVo(Page<Course> coursePage, Course course);

    Page<CourseVo> selectListByUserName(Page<CourseVo> courseVoPage,String name,Long planId);


    Page<CourseVo> selectPageVoByOrder(Page<Course> coursePage, Course course,Long  userId);

    Page<CourseVo> selectPageVoNoOrder(Page<Course> coursePage, Course course,Long  userId);

    Page<CourseVo> selectCourseListByTeacherName(Page<CourseVo> courseVoPage, String name, Long planId);

    Page<CourseVo> selectStudentEvaluationStatus(Page<CourseVo> courseVoPage, String name);

}
